package com.auth.leaves.mapper;

import com.auth.leaves.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: LEAVES
 * @Date: 2020年10月27日 16时44分28秒
 * @Version 1.0
 */
@Repository
@Mapper
public interface TUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    TUser selectByusername(@Param("username") String username);

    List<TUser> selectAll();

}